home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
GAMEORTS
/
BATTERUP.LZH
/
BALL.DOC
< prev
next >
Wrap
Text File
|
1988-07-04
|
18KB
|
413 lines
<<<<<<<<<<<< THIS DOCUMENTATION IS IN FILE BALL.DOC >>>>>>>>>>>>
THE BASEBALL PROGRAM DESCRIBED BELOW HAS A REGISTERED COPYRIGHT
(BALL.V18)
DATED 22 OCTOBER 1986.
THIS PROGRAM MAY BE FREELY
DISTRIBUTED ONLY IN ITS
ORIGINAL AND COMPLETE FORM
PROVIDED SUCH DISTRIBUTION
IS MADE WITHOUT CHARGE.
This is a summary of the BASEBALL (BALL.V18) program. It presents
installation steps, in case of trouble information, and requirements and
features of the game.
The BASEBALL (BALL.V18) program is not a public domain or free program!
It is being distributed as Shareware which gives users a chance to try
software before buying. If you try BASEBALL (BALL.V18) and continue using
it, you are expected to register. Registration licenses you to use
BASEBALL (BALL.V18) and future updates. Any unregistered use other than
trial use to determine if BASEBALL (BALL.V18) meets your needs is a
violation of the license agreement and is forbidden. A nominal charge may
be made for copying and mailing expenses only.
YOU START THIS PROGRAM BY TYPING "BASEBALL", WITHOUT THE QUOTE MARKS AND
ONCE STARTED YOU QUIT DURING PLAY WITH THE "F1" KEY OR BY ANSWERING
PROMPTS DISPLAYED AT END OF A GAME!
INSTALLATION
1. Make sure you have the following sixteen (16) files:
EXECUTABLE DOCUMENTATION USED BY PROGRAM
BASEBALL.EXE README.DOC BALL.DLY
NEWRCD.BAT LICENSE.DOC BASEBALL.RCD
DLYBLD.BAS BALL.DOC BAT.RCD
NORCD.DMY
CLK47.DLY
CLK8.DLY
CLK12.DLY
CLK16.DLY
CLK20.DLY
GNAME.PIC
If you don't have all files, you must get them before proceeding.
2. Make a backup and copy all files to the same directory that you plan
to use.
3. The files listed above under column "USED BY PROGRAM" contains six (6)
files with the extension ".DLY". The file "BALL.DLY" is used during
execution to determine the length of time various things are displayed on
the screen and it has values for a computer with a clock speed of 4.7Mhz.
If you know that your computer has a clock speed of 4.7Mhz you don't have
to change anything. Type "BASEBALL" and go to step c below.
If you know that your computer has a clock speed different than 4.7Mhz,
then you must make the simple change:
a. Delete the file "BALL.DLY" and create a new file "BALL.DLY" with
the contents of the appropriate "CLK--.DLY" file. The clock speed of
each "CLK--.DLY" file is shown by the integer part of the name where
47 = 4.7Mhz and 8, 12, 16, and 20 = Mhz. Type "BASEBALL" and go to
step c below.
b. If you don't know what the clock speed of your computer is, try
the program by typing "BASEBALL", without the quote marks, and see
what things look like. If screen movement appears too fast, your
machine is probably faster than 4.7Mhz so try making a new
"BALL.DLY" file as described (a.), above.
c. If after you typed "BASEBALL" you could not start the game, go to
step 4 for start up problems.
d. If after you typed "BASEBALL" and everything seems OK, your done
with installation. Go to step 5.
e. INTERPRETIVE BASIC GENERATION OF "BALL.DLY".
This BASIC program "DLYBLD.BAS" is provided to adjust delay values
for computers of different clock speeds from 4.7 Mhz to 20 Mhz if
you don't like delays provided. Get into your BASIC and execute
"DLYBLD.BAS" to set delays. The program will prompt you for what
entries are needed and will generate the file "BALL.DLY". Type
"BASEBALL" and go to step c above.
4. If you have start up problems:
a. Make sure you have the files "BASEBALL.RCD" and "BAT.RCD" in the
same directory (all files should be in same directory) that you
copied files to in step 2.
b. If neither of the above files exist, make sure the file
"NORCD.DMY" exists and that it is in the directory that you copied
files to in step 2.
c. If neither a or b is satisfied, enter the following ASCII text to
a file named "NORCD.DMY" in the directory that files were copied to
in step 2 exactly as shown. The text shown is what the file
"NORCD.DMY" must contain.
0
0,"01-01-1986","GIANTS","RJY"
0,"01-01-1986","GIANTS","RJY"
0,"01-01-1986","GIANTS","RJY"
0,"01-01-1986","GIANTS","RJY"
.001,"01-01-1986","GIANTS","RJY"
.999,"01-01-1986","GIANTS","RJY"
0,"01-01-1986","GIANTS","RJY"
1,"01-01-1986","GIANTS","RJY","GIANTS","RJY"
1.,"01-01-1986","GIANTS","RJY"
1,"01-01-1986","GIANTS","RJY"
1.,"01-01-1986","GIANTS","RJY"
c. If you still have problems, make sure the file "GNAME.PIC" exists
in the directory you copied files to in step 2. If it does not
exist, you must get everything again because you cannot create this
file yourself.
5. You are now ready to play but should read the rest of this document
first.
If you have problems and are a licensed user, I will assist you. Send
information, including Version # and where you acquired the program, to
the following address.
Russell J. Yuma
2111 Latham #121
Mountain View, Calif.
94040
USE VERSION REFERENCE # V18 FOR PROBLEM REPORTING
<<<<<<<<<< CAUTION >>>>>>>>>>
NOTE: The files "BASEBALL.RCD" and "BAT.RCD" are provided only to have
some data for display when you play and complete your first game. After
you have installed everything you can delete these files and start record
files of your own.
If you want to start the record's files ("BASEBALL.RCD" and "BAT.RCD")
over do the following:
1. Save the current files "BASEBALL.RCD" and "BAT.RCD", if you want to,
using DOS and make sure you use different file names.
2. Always delete, after you save, files "BASEBALL.RCD" and "BAT.RCD" with
the provided batch file "NEWRCD.BAT". This BAT file will not delete the
needed "BASEBALL.RCD" and "BAT.RCD" unless the file "NORCD.DMY" exists.
HARDWARE REQUIREMENTS
The version of BASEBALL (BALL.V18) provided requires a MONOCHROME or
COLOR DISPLAY, at least one disk drive, and a system with at least 128K
of memory above operating system requirements. It has been tested on IBM
PC, IBM XT, and IBM ATs and compatibles and will work with a single disk,
two disks, or hard disk systems and systems with RAM disks. Limited
testing has been done on systems with Hurcules.
SOFTWARE REQUIREMENTS
This program requires IBM DOS 2.0, or above, or the equivalent.
<<< DEFINITIONS >>>
PLAYERS
Players means the number of persons playing the game. This game allows
one or two players. When two players are selected, keys on the right
and left side of the keyboard are activated. With one player selected,
keys on the left side of the keyboard are activated.
TEAMS
Teams means the baseball teams in the game. There are always two teams
regardless of the number of players.
<<< END OF DEFINITIONS >>>
FEATURES
1. Each player is identified by a one to three character ID for a record
file. When only one player is selected only one player ID is required.
2. Each team is identified by a one to twelve character name. You must
enter two team names regardless of how many players are selected.
3. There are three levels of skill, one of which may be selected and
assigned to each team. A skill level is required for each team, not
necessarily the same, regardless of the number of players. Effects of
skill selection are subtle and apparent.
4. A summary similar to a box score is displayed at end of game.
5. A records file is displayed at the start and at the end of each game.
At the end of the game any new record(s) set during the game are
highlighted and the records are written to disk.
6. A statistics file is displayed at the end of each game. It contains the
line ups for each team with the following statistics for each player:
at bats, hits, singles, doubles, triples, home runs, walks, strike
outs, double plays hit into, and batting average. The top of the
display shows total games played and number won and lost by each team.
The bottom of the display shows total team statistics. Because of the
amount of data displayed, the statistics are displayed separately for
each team.
7. At the end of the game an option is presented to play another game with
same players and teams or different players, teams, and skill levels.
8. Color is used for a color monitor, and highlighting and reverse image
is used for monochrome monitor, automatically.
8. Music of "TAKE ME OUT TO THE BALL GAME" is played and sound is provided
for errors of entry and for pitches, hits, and outs. The music and
sound can be turned off and on with function key F8.
9. Games of extra innings are supported.
10. A score board is displayed and updated as play progresses.
11. An auxiliary board of balls, strikes, and outs is displayed and updated
on each pitch.
12 An action board of action and team batting averages is displayed and
updated as play progresses.
13. Home and visitor line ups can be displayed. Each display shows the
current batter (marked with a flashing "*"), the player's position,
batting average for all games, (ie. season) and at bats and hits for
current game. The visitor line up is on the right and is turned on/off
with the cursor down key, and the home line up is on the left and is
turned on/off with function key F6.
14. The players of each team are represented on a "bench" and adjusted as
play progresses.
15. At bat team players move to "on deck" and "at bat" positions.
16. A batter is positioned as batting left or right.
17. A pitched ball moves on the screen from pitcher to catcher.
18. If a pitched ball is swung at and missed it is a strike. If not swung
at it may be a strike or a ball.
19. An umpire figure appears briefly to indicate balls and strikes.
20. A "hit" ball moves, on the screen, foul or fair.
21. A ball "hit" fair may be a single, double, triple, home run, or an out.
22. A full screen message with a figure jumping across the screen is
displayed for home runs.
23. A ball "hit" for an out may simply be an out or it may be a sacrifice
fly, fielders choice, or a double play.
24. Runners are displayed on the bases and they advance, on the screen,
according to total bases for a hit, one base for a walk, and movement
is shown for all outs.
25. Runners on base may steal second and third base and movement is shown
on the screen for both runners and the catcher's throw.
26. The game is played with function keys and the keys used depend upon how
many players there are.
27. The active function keys are displayed during the game on line 25 with
an explanation. The keys used are F6, F7, F8, and F9; and the cursor
Left, Right, Up, Down.
28. Function key F5 is not shown because of space limitations, but when
depressed the game is interrupted and team statistics are shown and
then the game is resumed (see #6 above).
29. The game may be terminated at any time with function key F1.
30. A clock display is shown in the upper left corner while the game is being
played. It is active only while the game is being played and its purpose is to
show you that the BASEBALL game is still active, waiting for input, and most
importantly, the BASEBALL program is still alive and not hung up.
<<<<<<<<<< MAINTENANCE NOTES V15 >>>>>>>>>>
The BASEBALL.EXE file has been made from the source in directory \SHWARE
which is the version for Quick Basic 4.0. The Quick Basic V4.0 has
changes to execute correctly when either BASEBALL.RCD or BAT.RCD files
are not present.
One problem was that the record lengths of a newly created BASEBALL.RCD
file were not always 80 bytes and this caused RCDTXT.ASM to put garbage
on the screen, forever.
FIX - The file NORCD.DMY must be present whenever BASEBALL.RCD is not
present.
The second problem was that without a BAT.RCD file it is possible that
the presentation of the team summary could cause a divide by zero if
any batter had zero at bats. Not likely, but in testing with a game of
1 inning instead of 9 it happens.
FIX - Added a test so that no divide with a zero at bats is attempted.
The third problem was in testing for visitor team setting a new record.
FIX - Eliminated testing for visitor team statistic equal to home team
statistic. That was a wrong translation of BASEBALL (BALL.V15) BASICA
code to structured IF STATEMENTS in Quick Basic V4.0.
Added the batch file NEWRCD.BAT to delete BASEBALL.RCD and BAT.RCD with
a caution that Ctrl-Break can abort and a delete will not be done if the
file NORCD.DMY does not exist.
<<<<<<<<<< END MAINTENANCE NOTES V15>>>>>>>>>>
<<<<<<<<<< MAINTENANCE NOTES V16 >>>>>>>>>>
BALL.BAS (V15)
Corrective code added for condition when:
Bases loaded, less than two outs and ball hit to an infielder.
V15 would show all runners move, no score, and wrong action message.
V16 will show all runners move and out is at Home Plate x-2. 27 April 88.
COMDEF.ASM (V15)
Changed all V15s to V16s. 27 April 88.
Changed 3rd line of RCD_HDR data to properly space TEAM PLYR text line
when records displayed. Cosmetic only so no version change. 11 May 88.
<<<<<<<<<< END MAINTENANCE NOTES V16 >>>>>>>>>>
<<<<<<<<<< MAINTENANCE NOTES V17 >>>>>>>>>>
BALL.BAS version V16 changed to not use BLOAD statement to show baseball
logo, GNAME.PIC, of BASEBALL. This was done to eliminate any possibility
of QB4 and this program from causing a problem on an AT&T 6300. The BLOAD
statement and all DSEG variable use was made into comments. The function
of BLOAD was replaced with a CALL LOGO which is a subroutine added to
COMDEF ASM. Also added subroutine name as comment to all ASM CALLs.
See notes under SHWARE from Dr. Hawkins. Ron Schaller tested what Hawkins
could not get to work and V17 and they both worked on a AT&T 6300. Ron
told me this on 11 June 88.
COMDEF.ASM changed to add subroutine to read and display the file
GNAME.PIC.
COMDEF.ASM changed title line to eliminate Version number.
COMDEF.ASM changed comment line after title to show V17 and 13 June 88
and C_NOTIC to have 22 Oct 86 date.
SETARRAY.ASM changed comment line after title to show V17 and 13 June 88
and C_NOTIC to have 22 Oct 86 date.
BUP.ASM changed comment line after title to show V17 and 13 June 88 and
C_NOTIC to have 22 Oct 86 date.
BIGMSG.ASM changed comment line after title to show V17 and 13 June 88
and C_NOTIC to have 22 Oct 86 date.
<<<<<<<<<< END MAINTENANCE NOTES V17 >>>>>>>>>>
<<<<<<<<<< MAINTENANCE NOTES V18 >>>>>>>>>>
BALL.BAS version V17 had a problem with displaying the record file. The
problem was that the DEF functions of FNRCDA$, FNRCDI$, and FNRCDL$ did
not always return the A$ string length as a multiple of 80 bytes. The
problem was caused by player ID and team Name string lengths not being
correctly accounted for. I could cause the program to crash with two
players with IDs of 1 and 2 byte lengths and team Names of 1 and 2 byte
lengths.
When the ASM routine RCDTXT in COMDEF.ASM was called with an A$ string
length not equal to 880 the program would break. RCDTXT uses the A$
string length in multiples of 80 and when it is not a multiple of 80 the
routine moves things all over memory which causes a program crash.
BALL.BAS changed. I removed the SPACE$(20) from the end of FNRCDA$ and
the SPACE$(T5) from the end of FNRCDI$ functions.
I added a subroutine named MAKERCD80 which makes sure each of the eleven
(11) records for the record file will always be 80 bytes in length.
I added a GOSUB MAKERCD80 after each call to functions FNRCDA$, FNRCDI$,
and FNRCDL$ in the subroutine PRINTRCD.
This problem was reported by T&Z Software in a letter dated 28 June 1988.
See binder for letter.